<?php


namespace app\voip\validate;


use think\Validate;

class AirlinesAuth extends Validate
{
    protected $rule = [
        'excelId'  =>  'require|number|max:11',
        'order'  =>  'require|number|between:1,2',
        'password'=>'require|max:240',
        'dataset'=>'number|max:1',
        'relation'=>'require|number|max:1',
        'province'=>'number|max:11',
        'city'=>'number|max:11',
        'county'=>'number|max:11',
        'page'=>'require|number',
        'limit'=>'require|number',
        'uid'=>'require|number|max:19',
        'age'=>'max:32',
        'sex'=>'require|number|max:1',
        'intention'=>'require|number|max:2',
        'username'=>'require|max:10',
        'type'=>'require|number|max:1',
        'qq'=>'max:32',
        'phone'=>'max:32',
        'email'=>'max:64',
        'wechat'=>'max:120',
        'alipay'=>'max:120',
        'call_status'=>'require|number|max:2',
        'remark'=>'require|max:200',
        'mark'=>'require|number|max:2',
        'is_sms'=>'number|max:1',
        'sms_id'=>'number|max:32',
        'datetime'=>'max:64',
        'orderType'=>'require|number|max:1'
    ];

    protected $message = [
        'excelId'       => 'excel选择错误',
        'password'      => '密码错误',
        'dataset'       =>'数据过滤异常',
        'relation'      => '关系过滤异常',
        'province'      =>'省选择错误',
        'city'          => '市选择错误',
        'county'        => '区选择错误',
        'page'          =>'请求错误',
        'limit'         =>'请求错误',
        'uid'=>'用户信息错误！',
        'age'=>'年龄信息错误！',
        'sex'=>'性别信息错误！',
        'intention'=>'意向信息错误！',
        'username'=>'称呼信息错误！',
        'type'=>'信息错误！',
        'qq'=>'qq信息错误！',
        'phone'=>'手机号信息错误！',
        'email'=>'Email信息错误！',
        'wechat'=>'微信号信息错误！',
        'alipay'=>'支付宝账号信息错误！',
        'call_status'=>'呼叫状态信息错误！',
        'remark'=>'备注信息错误！',
        'mark'=>'本次电话评分信息错误！',
        'is_sms'=>'信息错误！',
        'sms_id'=>'信息错误！',
        'order'=>'信息错误！',
        'datetime'=>'时间长度错误',
        'orderType'=>'排序类型错误',
    ];

    protected $scene = [
        'airlinesExcelInfo'   => ['excelId','password','dataset','relation','province','city','county','page','limit','order'],
        'airlinesAreaInfo'   => ['dataset','relation','province','city','county','page','limit','order'],
        'uploadLog'=>['uid', 'age', 'sex', 'intention', 'username', 'type', 'qq', 'phone', 'email', 'wechat', 'alipay', 'call_status', 'remark','mark', 'is_sms', 'sms_id'],
        'ajaxLogList'=>['datetime','orderType','order']
    ];
}